package com.dymall.cart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dymall.cart.domain.dto.CartDTO;
import com.dymall.cart.domain.dto.CartItemDTO;
import com.dymall.cart.domain.pojo.Cart;

import java.util.List;

public interface ICartService extends IService<Cart> {
    Cart createCart(Long userId);
    void addItem(Long userId, CartItemDTO cartItemDTO);
    CartDTO getCart(Long userId);
    void emptyCart(Long userId);
    // 删除一个商品
    void removeAItem(Long productId);
    // 批量删除
    void removeItems(List<Long> productIds);
}
